﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;

namespace YaAppoint.PrintTemplates
{
    /// <summary>
    /// 打印模板
    /// </summary>
    public class PrintTemplate : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        [MaxLength(50)]
        public virtual string Name { get; set; }

        /// <summary>
        /// 打印类型 Appointment:预约小票 ， CheckIn:签到小票
        /// </summary>
        public virtual PrintType PrintType { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public virtual Department Department { get; set; }

        public virtual Guid DepartmentId { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public virtual DeviceType DeviceType { get; set; }

        public virtual Guid DeviceTypeId { get; set; }

        /// <summary>
        /// 模板内容
        /// </summary>
        public virtual string? JsonContent { get; set; }

        public virtual bool IsActive { get; set; } = true;

        public virtual int Order { get; set; } = 0;


    }
}
